package br.com.viamais.business;

import java.io.Serializable;

import br.com.viamais.enumerator.Permission;
import br.com.viamais.model.Role;

public interface IRoleBO extends Serializable {

	/**
	 * Get by permission.
	 * 
	 * @param Permission: permission.
	 * 
	 * @return Role: role.
	 * 
	 * @throws Throwable: connection issues.
	 */
	public abstract Role getByPermission(Permission permission)
			throws Throwable;
	
	/**
	 * Save or update a role entity.
	 * 
	 * @param Role: role.
	 * @throws Throwable: connection issues.
	 */
	public abstract void saveOrUpdate(Role role) throws Throwable;

}